package util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class PhoneCheck {
        public static boolean checkPhone(String phoneNumber) {
            String regex = "^1[3|4|5|6|7|8|9][0-9]{9}$";
            Pattern pattern = Pattern.compile(regex);
            Matcher matcher = pattern.matcher(phoneNumber);
            return matcher.matches();
        }
}
